#include "PageMap.h"

void test()
{
    TCMalloc_Map2<36> pm;

    void *ptr = systemAlloc(1);
    Span *span = new Span;
    span->_page_id = (size_t)ptr >> PAGE_SHIFT;
    span->_n = 1;
    
    pm.set(span->_page_id, span);
    Span *newSpan = (Span *)pm.get(span->_page_id);
    printf("span = %p, newSpan = %p\n", span, newSpan);
}

// int main()
// {
//     test();
// }